﻿@model KeyValuePair<string, string>
@using publicLibrary
<form action="/@Html.getRoute(routeKeyEnum.controller)/editItem/@Html.getRoute(routeKeyEnum.id)" method="post">
@Html.Hidden("oldkey", Model.Key)
@Html.TextBox("key", Model.Key)
@Html.TextBox("value", Model.Value)
<input type="submit" value="提交" />
@if (!string.IsNullOrEmpty(Model.Key))
{
<a href="/@Html.getRoute(routeKeyEnum.controller)/delItem/@Html.getRoute(routeKeyEnum.id)?key=@Model.Key">删除</a>
}
 </form>
